// Copyright (C) 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.pf-explore-page-help {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pf-exp-getting-started {
  position: sticky;
  top: 0;
  background: var(--pf-color-background);
  padding: 0.5rem;
  z-index: 1;
  margin-bottom: 1rem;

  .card {
    flex: 1;
    transition:
      transform 0.2s ease-in-out,
      box-shadow 0.2s ease-in-out;
    cursor: pointer;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    h4 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      font-size: var(--pf-exp-font-size-md);
      font-weight: 500;
    }

    p {
      margin-bottom: 0;
      font-size: var(--pf-exp-font-size-sm);
      color: var(--pf-color-text-muted);
    }
  }
}

.pf-exp-table-list {
  overflow-y: auto;
  height: 100%;

  .pf-table-card {
    text-decoration: none;
    display: block;

    .pf-table-card-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.25rem;
    }

    .table-name {
      font-weight: 500;
      color: var(--pf-color-primary);
    }

    .pf-importance-chip {
      color: white;
      font-size: 0.7rem;
      font-weight: 500;
    }

    .pf-importance-high {
      background-color: var(--pf-color-danger);
    }

    .pf-importance-mid {
      background-color: var(--pf-color-primary);
    }

    .pf-importance-low {
      background-color: var(--pf-color-text-disabled);
    }

    .table-description {
      font-size: var(--pf-exp-font-size-sm);
      color: var(--pf-color-text-muted);
    }
  }

  .pf-search {
    @extend .pf-exp-input;
  }
}
